﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class GuidDetail : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int uid = Convert.ToInt32(Request.QueryString["id"].ToString());
        hid_uid.Value = uid.ToString();//导游ID
        hid_uName.Value = Account;

        GuidInfo(uid);
    }


    /// <summary>
    /// 获取导游信息
    /// </summary>
    /// <param name="id"></param>
    private void GuidInfo(int id)
    {
        try
        {
            DataTable dt = DataHandler.Current.GetGuiderInfoByid(id);
            if (dt != null && dt.Rows.Count > 0)
            {
                div_info.InnerHtml = dt.Rows[0]["Info"].ToString();
            }
            else
            {
                Common.AlertMessageAndRedirect("未能获取导游信息，请重新选择", "Index.aspx");
            }

        }
        catch
        {
            Common.AlertMessageAndRedirect("未能获取导游信息，请重新选择", "Index.aspx");
        }
    }
}